home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Presentations / Presentations ’96 / Sessions ’96 / ODF- Easy OpenDoc / MacHack(5) / Sources / MacHackView.h < prev    next >
Encoding:
Text File  |  1996-06-17  |  2.0 KB  |  74 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //
  3. //    File:                MacHackView.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef MACHACKVIEW_H
  11. #define MACHACKVIEW_H
  12.  
  13. // ----- Part Layer -----
  14.  
  15. #ifndef FWSVIEW_H
  16. #include "FWSView.h"
  17. #endif
  18.  
  19. // ----- Foundation Layer -----
  20.  
  21. #ifndef FWRECEVR_H
  22. #include "FWRecevr.h"
  23. #endif
  24.  
  25. //========================================================================================
  26. // Forward Declaration
  27. //========================================================================================
  28.  
  29. class CMacHackPart;
  30. class CMacHackFrame;
  31.  
  32. //========================================================================================
  33. // Class CMacHackView
  34. //========================================================================================
  35.  
  36. class CMacHackView : public FW_CSuperView, public FW_MReceiver
  37. {
  38. public:
  39.     FW_DECLARE_AUTO(CMacHackView)
  40.     FW_DECLARE_CLASS
  41.  
  42. //----------------------------------------------------------------------------------------
  43. // Initialization/destruction
  44. //
  45. public:        
  46.     CMacHackView(Environment* ev);
  47.     virtual ~ CMacHackView();
  48.         
  49. //----------------------------------------------------------------------------------------
  50. // Inherited API
  51. //
  52. public:        
  53.     // ----- Drawing -----
  54.     virtual void             Draw(Environment* ev, ODFacet* odFacet, ODShape* invalidShape);
  55.  
  56.     // ----- Post Creation -----
  57.     virtual void            PostCreateViewFromStream(Environment* ev);
  58.  
  59.     // ----- FW_MReceiver overrides ----- 
  60.     virtual void             HandleNotification(Environment* ev, const FW_CNotification& notification);
  61.     
  62.     // ----- Archiving -----
  63.     static void*            Create(FW_CReadableStream& stream, FW_ClassTypeConstant type);
  64.     static void                Destroy(void* object, FW_ClassTypeConstant type);
  65.  
  66. //----------------------------------------------------------------------------------------
  67. // Data Members
  68. //
  69. private:    
  70.     CMacHackPart*        fMacHackPart;
  71. };
  72.  
  73. #endif
  74.